
#include "HkpPhantom.h"

namespace Havok
{
	namespace Dynamics
	{
		namespace Phantom
		{
			PhantomType HkpPhantom::Type::get()
			{
				return (PhantomType)m_phantom->getType();
			}

			void HkpPhantom::CalcAabb(BoundingBox% aabb)
			{
				hkAabb* box = new hkAabb();
				m_phantom ->calcAabb(*box);
				aabb.Min = Vector3(box->m_min.getSimdAt(0), box->m_min.getSimdAt(1), box->m_min.getSimdAt(2));
				aabb.Max = Vector3(box->m_max.getSimdAt(0), box->m_max.getSimdAt(1), box->m_max.getSimdAt(2));
				delete box;
			}

			//void HkpPhantom::AddOverlappingCollidable(Collision::HkpCollidable^ collidable)
			//{
			//	m_phantom->addOverlappingCollidable(collidable->m_collidable);
			//}

			//void HkpPhantom::RemoveOverlappingCollidable(Collision::HkpCollidable ^collidable)
			//{
			//	m_phantom->removeOverlappingCollidable(collidable->m_collidable);
			//}
		}
	}
}